//
//  DownloadHelper.h
//  Meach
//
//  Created by apple on 12-9-19.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol DownloadHelperDelegate
@optional
- (void)didFinishDownload:(id)result;
@end

@interface DownloadHelper : NSObject{
@private
    
    NSURLConnection         *appListFeedConnection;
    NSMutableData           *appListData;
    NSString                *reqUrl;
    id  delegate;
}
//@property (nonatomic, assign) id <DownloadHelperDelegate> delegate;
-(void) startCmd: (NSString *)cmd code:(NSString*)code;

@property (nonatomic, retain) NSString *reqUrl;
@property (nonatomic, retain) NSMutableData *appListData;
@property (nonatomic, retain) NSURLConnection *appListFeedConnection;
- (id)initWithDelegate:(id <DownloadHelperDelegate>)theDelegate;
-(void) cancelDownload;

@end

